package com.showsu.editor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.showsu.editor.entity.po.TblRemoteInterfaceSwitchRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: William
 * @Description:
 * @Date: Created in 3:13 下午 2024/3/8
 * @Modified By:
 */
@Mapper
public interface TblRemoteInterfaceSwitchRecordMapper extends BaseMapper<TblRemoteInterfaceSwitchRecord> {

    /**
     * 查询最近某个时间起，最后一条接口切换记录。按接口id分组。
     * @param params
     * @return
     */
    List<TblRemoteInterfaceSwitchRecord> queryLastSwitchRecordInRecentTimesGroupByInterfaceId(Map<String, Object> params);

}
